package com.rc.evcharger.common.code;

/**
 * 登录请求及应答控制码
 * 所有的请求都必须有响应应答
 *
 * @author yang
 */
public class StdControlCode {
    /**
     * 桩请求登录
     */
    public static final String LOGIN = "A1";
    public static final String RESP_LOGIN = "21";

    /**
     * 桩请求退出登录
     */
    public static final String LOGOUT = "A2";
    public static final String RESP_LOGOUT = "22";

    /**
     * 桩请求上报卡号
     */
    public static final String CARD_NO_A3_REQUEST = "A3";
    public static final String CARD_NO_23_RESPONSE = "23";

    /**
     * 桩请求心跳检验
     */
    public static final String HEARTBEAT_MONITOR = "A4";
    public static final String RESP_HEARTBEAT_MONITOR = "24";

    /**
     * 桩充电数据上报
     */
    public static final String ELEC_DATA_REPORT = "A5";

    /**
     * 桩请求充电数据结算
     */
    public static final String ELEC_DATA_BALANCE = "A6";
    public static final String ELEC_DATA_BALANCE_RES = "26";

    /**
     * 实时写对象参数
     * 校时功能
     */
    public static final String WRITE_OBJ_PARAM_REALTIME = "27";
    public static final String RESP_WRITE_OBJ_PARAM_REALTIME = "A7";

    /**
     * 桩异常告警
     */
    public static final String EXCEPTON_WARN = "A8";
    public static final String RESP_EXCEPTON_WARN = "28";

    /**
     * 桩插枪上报VIN码
     */
    public static final String VICHELE_VIN_REPORT = "A9";
    public static final String VICHELE_VIN_REPORT_RESPONSE = "29";

    /**
     * 平台请求控制充电启动停止
     */
    public static final String CONTROL_CHARGE_START_STOP = "0E";
    public static final String RESP_CONTROL_CHARGE_START_STOP = "8E";

    /**
     * 平台请求远程控制升级
     */
    public static final String REMOTE_UPGRADE = "C1";
    public static final String RESP_REMOTE_UPGRADE = "31";

    /**
     * 平台请求解锁指令
     */
    public static final String CONTROL_UNLOCK = "C2";
    public static final String RESP_CONTROL_UNLOCK = "32";


    /**
     * 平台请求断电指令
     */
    public static final String POWER_OFF_C3_REQUEST = "C3";
    public static final String POWER_OFF_33_RSPONSE = "33";


    /**
     * 下发用户余额指令码
     */
    public static final String USER_ACCOUNT_C4_REQUEST = "C4";
    public static final String USER_ACCOUNT_34_RSPONSE = "34";

    /**
     * 读当前数据
     */
//    public static final String READ_CURRENT_DATA = "01";
//    public static final String RESP_READ_CURRENT_DATA = "81";

    /**
     * 读充电数据
     */
//    public static final String READ_CHARGE_DATA = "03";
//    public static final String RESP_READ_CHARGE_DATA = "83";
//    public static final String RESP_READ_SURE_DATA = "0B";  //确认帧


    /**
     * 写对象参数
     */
//    public static final String WRITE_OBJ_PARAM = "08";
//    public static final String RESP_WRITE_OBJ_PARAM = "88";


    /**
     * 充电桩动态信息查询指令
     */
    public static final String ELEC_PILE_POWER_REQUEST = "35";
    public static final String ELEC_PILE_POWER_RESPONSE = "C5";

    /**
     * 桩充电功率限制指令
     */
    public static final String ELEC_PILE_LIMIT_POWER_REQUEST = "36";
    public static final String ELEC_PILE_LIMIT_POWER_RESPONSE = "C6";

}
